package com.wanxi.api.digui;

public class FiveJieCheng {
    public static void main(String[] args) {
        int i=5;
        int result=jie(i);
        System.out.println(result);
    }

    private static int jie(int i) {
        if(i<=1){
            return i;
        }
        return i*jie(--i);
    }
}
